$(document).ready(function(){
	$('.formatTime').each(function(){
		$(this).html( formatDate( new Date(Number($(this).html())), 'E, d NNN yyyy hh:mma') );
	});
});

function compareSubmissions(s1, s2) {
	if (s1 == undefined || s2 == undefined) {
		alert('Choose submissions to compare')
		return;
	}

	$('#comparisonPre').load('/submissions/compareSubmissions?s1='+s1+'&s2='+s2);
}